package daytrader.data;

import java.util.Date;
import daytrader.types.Sector;

public interface DataAPI {
	final int numberTicksPerDay = 10000;
	final long marketActiveTime = 1000 * 60 * 60 * 3;

	// market starts at 9 o'clock of a day
	final long marketStartTime = 1000 * 60 * 60 * 13;

	public String[] listStockNames();
	public TickData[] getTickData(String stockName);
	public TickData[] getTickDataOfToday(String stockName);
	public TickData[] getTickDataOfDate(String stockName, Date date);
	public long getMarketActiveTimeDuration();
	public long getMarketStartTimeOfToday();

	/* property of a stock */
	public Sector getSector(String stockName);
}
